package edu.sctu.xialei.May.day20150526one;

import java.util.HashMap;

/**
 * Created by Administrator on 5/26/2015.
 */
public class Printer {

    public void printHashMapData(HashMap<Integer,Dog> map){

        System.out.println("\n\n\n");

        for (int i = 0; i < map.size(); i++) {
            System.out.println("\n***第 " + (i+1) + " 个狗狗信息***");
            System.out.println("狗狗姓名： " + map.get(i).dogName + "    狗狗年龄： " + map.get(i).dogAge + "    狗狗毛色： " + map.get(i).dogColor);
        }
    }
}
